//科目资讯编辑。
Ext.define("ES.view.information.InformationEdit",{
    extend:"Ext.window.Window",
    alias:"widget.informationEdit",
    title:"科目资讯",
    width:650,
    height:500,
    layout:"fit",
    modal:true,
    items:{
        xtype:"form",
        defaultType:"textfield",
        frame:true,
        layout:"column",
        buttonAlign:"center",
        defaults:{
            labelSeparator:":",
            labelWidth:56,
            labelAlign:"right",
            allowBlank:false,
            blankText:"不允许为空",
            msgTarget:"side"
        },
        items:[{
                    fieldLabel:"资讯名称",
                    name:"infoTitle",
                    columnWidth:1
               },{
                    xtype:"combo",
                    fieldLabel:"所属科目",
                    emptyText:"====所属科目====",
                    name:"catalogID",
                    queryMode:"local",
                    lazyRender:true,
                    store:"CatalogStore",
                    displayField:"fullCatalogName",
                    valueField:"catalogID",
                    columnWidth:1
               },{
                    xtype:"combo",
                    fieldLabel:"资讯类型",
                    name:"type",
                    queryMode:"local",
                    lazyRender:true,
                    store:"ExamTypeStore",
                    displayField:"memberName",
                    valueField:"intValue",
                    value:0,
                    columnWidth:.5 
               },{
                    xtype:"combo",
                    fieldLabel:"资讯状态",
                    name:"status",
                    queryMode:"local",
                    lazyRender:true,
                    store:"ExamStatusStore",
                    displayField:"memberName",
                    valueField:"intValue",
                    value:1,
                    columnWidth:.5
               },{
                   xtype:"htmleditor",
                   enableColors: false,
                   enableAlignments: false,
                   name:"content",
                   height:350,
                   columnWidth:1 
               }],
        buttons:[{
                    text:"保存",
                    action:"btnSave",
                    formBind:true,
                    disabled:true,
                    tooltip:"保存数据"
                },{
                    text:"取消",
                    action:"btnCancel",
                    tooltip:"关闭窗口"
                }]
    },
    initComponent:function(){
        this.callParent(arguments);
    }
})